namespace NewsReport.Entity.POCOModel
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class News_Model : DbContext
    {
        public News_Model()
            : base("name=News_Model")
        {
        }

        public virtual DbSet<AdminInfo> AdminInfo { get; set; }
        public virtual DbSet<AnnouncementInfo> AnnouncementInfo { get; set; }
        public virtual DbSet<ArticleInfo> ArticleInfo { get; set; }
        public virtual DbSet<ArticleType> ArticleType { get; set; }
        public virtual DbSet<AttentionInfo> AttentionInfo { get; set; }
        public virtual DbSet<CollectInfo> CollectInfo { get; set; }
        public virtual DbSet<MessageInfo> MessageInfo { get; set; }
        public virtual DbSet<MoreComment> MoreComment { get; set; }
        public virtual DbSet<OneComment> OneComment { get; set; }
        public virtual DbSet<Promulgator> Promulgator { get; set; }
        public virtual DbSet<ProrLogin> ProrLogin { get; set; }
        public virtual DbSet<UserLogin> UserLogin { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<AdminInfo>()
                .Property(e => e.AdmName)
                .IsUnicode(false);

            modelBuilder.Entity<AdminInfo>()
                .Property(e => e.Upwd)
                .IsUnicode(false);

            modelBuilder.Entity<AnnouncementInfo>()
                .Property(e => e.AnTitle)
                .IsUnicode(false);

            modelBuilder.Entity<AnnouncementInfo>()
                .Property(e => e.AnContent)
                .IsUnicode(false);

            modelBuilder.Entity<ArticleInfo>()
                .Property(e => e.Atitle)
                .IsUnicode(false);

            modelBuilder.Entity<ArticleInfo>()
                .Property(e => e.Acontent)
                .IsUnicode(false);

            modelBuilder.Entity<ArticleInfo>()
                .Property(e => e.AImgUrl)
                .IsUnicode(false);

            modelBuilder.Entity<ArticleInfo>()
                .Property(e => e.ALable)
                .IsUnicode(false);

            modelBuilder.Entity<ArticleType>()
                .Property(e => e.TName)
                .IsUnicode(false);

            modelBuilder.Entity<MessageInfo>()
                .Property(e => e.MContet)
                .IsUnicode(false);

            modelBuilder.Entity<MoreComment>()
                .Property(e => e.MOContet)
                .IsUnicode(false);

            modelBuilder.Entity<OneComment>()
                .Property(e => e.OContet)
                .IsUnicode(false);

            modelBuilder.Entity<Promulgator>()
                .Property(e => e.PrName)
                .IsUnicode(false);

            modelBuilder.Entity<Promulgator>()
                .Property(e => e.PrSign)
                .IsUnicode(false);

            modelBuilder.Entity<Promulgator>()
                .Property(e => e.PIntroduce)
                .IsUnicode(false);

            modelBuilder.Entity<Promulgator>()
                .Property(e => e.PImgUrl)
                .IsUnicode(false);

            modelBuilder.Entity<Promulgator>()
                .Property(e => e.PAddress)
                .IsUnicode(false);

            modelBuilder.Entity<Promulgator>()
                .Property(e => e.Pemail)
                .IsUnicode(false);

            modelBuilder.Entity<ProrLogin>()
                .Property(e => e.Pname)
                .IsUnicode(false);

            modelBuilder.Entity<ProrLogin>()
                .Property(e => e.Ppwd)
                .IsUnicode(false);

            modelBuilder.Entity<ProrLogin>()
                .Property(e => e.Pphone)
                .IsUnicode(false);

            modelBuilder.Entity<UserLogin>()
                .Property(e => e.Uname)
                .IsUnicode(false);

            modelBuilder.Entity<UserLogin>()
                .Property(e => e.Upwd)
                .IsUnicode(false);

            modelBuilder.Entity<UserLogin>()
                .Property(e => e.Uemail)
                .IsUnicode(false);

            modelBuilder.Entity<UserLogin>()
                .Property(e => e.Uphone)
                .IsUnicode(false);
        }
    }
}
